package yag.battle.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import yag.battle.dao.ArmyDao;
import yag.battle.model.Army;

/**
 * Created by user on 31.08.2014.
 */
@Component
public class ArmyService {

    @Autowired
    private ArmyDao armyDao;

    public ArmyService() {
    }

    public Army getArmy(int id) {
        return armyDao.getArmy(id);
    }

    public void addArmy(Army army) {
        armyDao.addArmy(army);
    }

    public void deleteArmy(int id) {
        armyDao.deleteArmy(id);
    }
}
